<?php

namespace backend\models\system;

use Yii;

/**
 * This is the model class for table "{{%edu_admin_log}}".
 *
 * @property integer $log_id
 * @property integer $log_addtime
 * @property integer $admin_id
 * @property string $log_info
 * @property string $ip_address
 * @property integer $log_type
 */
class AdminLog extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%admin_log}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['log_addtime', 'admin_id', 'log_type'], 'integer'],
            [['log_info'], 'string', 'max' => 255],
            [['ip_address'], 'string', 'max' => 20]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'log_id' => 'Log ID',
            'log_addtime' => 'Log Addtime',
            'admin_id' => 'Admin ID',
            'log_info' => 'Log Info',
            'ip_address' => 'Ip Address',
            'log_type' => 'Log Type',
        ];
    }
}
